//
//  QLMAvilabAddrInfoView.m
//  Xiaomakuaixiu
//
//  Created by 龚碧容 on 2017/11/2.
//  Copyright © 2017年 hwd. All rights reserved.
//

#import "QLMAvilabAddrInfoView.h"

@implementation QLMAvilabAddrInfoView

-(id)init{
    self=[super init];
    if (self){
        [self _creatmainView];
    }
    return self;
}

- (void)tapDismiss{
    [self removeFromSuperview];
}

- (void)_creatmainView{
    
    UIView *coverView = [[UIView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    coverView.backgroundColor = [UIColor lightGrayColor];
    coverView.alpha = 0.7;
    coverView.userInteractionEnabled=YES;
    [self addSubview:coverView];
    
    UITapGestureRecognizer *tap=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapDismiss)];
    [coverView addGestureRecognizer:tap];
    
    UIView *alertView = [[UIView alloc] init];
    alertView.frame = CGRectMake(80,kScreen_height/2,kScreen_width-80*2,40);
    alertView.backgroundColor = [UIColor whiteColor];
    alertView.layer.masksToBounds=YES;
    alertView.layer.cornerRadius = 8.0;
    [self addSubview:alertView];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(5, 0, alertView.bounds.size.width-5*2, 40)];
    label.text = @"小马快修目前可用地区：湖北、重庆、四川、新疆、广西、山西";
    label.font = [UIFont systemFontOfSize:18];
    label.numberOfLines=0;
    label.textAlignment = NSTextAlignmentCenter;
    [alertView addSubview:label];
}

@end
